<div class="bingkai">
    <?php if ($data_pertanyaan['TIPE_PERTANYAAN'] == 'essay') { ?>
    <form action="<?php echo base_url() ?>feedback/feedback_con/step_polls_process" method="post">
    <?php } else { ?>
    <form class="jqtransform" action="<?php echo base_url() ?>feedback/feedback_con/step_polls_process" method="post">
    <?php } ?>
        <?php echo form_hidden('id_pertanyaan', $data_pertanyaan['ID_PERTANYAAN']) ?>
        <?php echo form_hidden('tipe_pertanyaan', $data_pertanyaan['TIPE_PERTANYAAN']) ?>
        <?php echo form_hidden('jum_pil', count($data_pilihan)) ?>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="pertanyaan4 droid">
                    <strong>Today Polls</strong> | Polling <?php echo ($num - 3) ?> dari <?php echo $this->session->userdata('jum_pertanyaan') ?>
                </td>
            </tr>
            <tr>
                <td class="jarakpoll">
                    <!-- Mulai isi polling -->
                    <div class="rounded4">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td valign="top" class="tanyapoll2">0<?php echo ($num - 3) ?>.</td>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="tanyapoll"><?php echo $data_pertanyaan['ISI_PERTANYAAN'] ?></td>
                                        </tr>
                                        <tr>
                                            <td class="batas-hor"></td>
                                        </tr>
                                        <?php if ($data_pertanyaan['TIPE_PERTANYAAN'] == 'multi') { ?>
                                            <tr>
                                                <td>
                                                    <div class="rowElem">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <?php for ($i = 0; $i < count($data_pilihan); $i++) { ?>
                                                                <tr>
                                                                    <td class="pilpil">
                                                                        <input type="checkbox" name="pilihan_<?php echo $i?>" value="<?php echo $data_pilihan[$i]['ID_PILIHAN'] ?>" />
                                                                        <label for="pilihan_<?php echo $i?>">&nbsp;<?php echo $data_pilihan[$i]['ISI_PILIHAN'] ?></label>
                                                                    </td>
                                                                </tr>
                                                            <?php } ?>
                                                        </table>
                                                    </div>
                                                    <div class="rowElem">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td class="batas-hor"></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="penjelasan3">Pilihan boleh lebih dari satu</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <?php } else if ($data_pertanyaan['TIPE_PERTANYAAN'] == 'single') { ?>
                                            <tr>
                                                <td>
                                                    <div class="rowElem">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            
                                                            <?php for ($i = 0; $i < count($data_pilihan); $i++) { ?>
                                                                <tr>
                                                                    <td class="pilpil">
                                                                        <input type="radio" name="pilihan" value="<?php echo $data_pilihan[$i]['ID_PILIHAN'] ?>" />
                                                                        <label for="checkbox2">&nbsp;<?php echo $data_pilihan[$i]['ISI_PILIHAN'] ?></label>
                                                                    </td>
                                                                </tr>
                                                            <?php } ?>
                                                        </table>
                                                    </div>
                                                    <div class="rowElem"></div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td class="batas-hor"></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="penjelasan3">Pilihan satu jawaban yang paling menggambarkan pendapat Kamu</td>
                                                        </tr>
                                                    </table></td>
                                            </tr>
                                        </table>
                                        <?php } else if ($data_pertanyaan['TIPE_PERTANYAAN'] == 'essay') { ?>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td class="pilpil pad5atasbawah"><label for="textarea"></label>
                                                                <textarea name="pilihan" cols="" rows="4" class="formbiasa ukuranform2" id="textarea"></textarea></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td class="batas-hor"></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="penjelasan3">Utarakan pendapat Kamu</td>
                                                        </tr>
                                                    </table></td>
                                            </tr>
                                        </table>

                                    <?php } ?>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!-- Selesai isi polling -->
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="h10"></td>
            </tr>
            <tr>
                <td>
                    <table border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <input type="submit" class="nextbutton" value=""/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</div>
</td>
<td class="back5">&nbsp;</td>
</tr>
<tr>
    <td class="back6">&nbsp;</td>
    <td class="back7">&nbsp;</td>
    <td class="back8">&nbsp;</td>
</tr>
</table>